<template>
  <div class="title">
    <img src="@/assets/images/dashboard/dec@2x.png" class="title-img" alt="" />
    <span class="title-text">{{ title }}</span>
  </div>
</template>

<script lang="ts" setup>
  import { defineProps } from 'vue';

  defineProps({
    title: {
      type: String,
      default: '标题',
    },
  });
</script>

<style scoped lang="less">
  .title {
    margin-left: 32px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    align-content: center;
    .title-img {
      height: 20px;
      width: 20px;
    }
    .title-text {
      display: inline-block;
      margin-left: 8px;
      font-size: 16px;
      font-family: Source Han Sans CN-Medium, Source Han Sans CN, serif;
      font-weight: 600;
      color: #1d2129;
      line-height: 19px;
    }
  }
</style>
